home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource2
/
sclib_1
/
1_8
/
v7n8072a.txt
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-11-01
|
494 b
|
28 lines
*****Listing 3*****
void someproc(p)
something * p;
{
#if DEBUG
if(!p)
{
if(report_null_pointer("someproc: p"))
return;
}
#endif
}
and use a target procedure which consists of
short report_null_pointer(where)
char * where;
{
fprintf(stderr,"NULL POINTER: %s\n",where);
return stop(where);
}
**********